package com.wmh.baseservice.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户角色与机器任务编号的映射
 * @author 谢骏
 * @TableName ad_role_robot_task
 * @createDate 2023-11-07 10:56:31
 */
@Data
@Accessors(chain = true)
@TableName("ad_role_robot_task")
public class AdRoleRobotTask implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 角色编号
     */
    @TableField(value = COL_ROLE_ID)
    private Long roleId;

    /**
     * 任务编号
     */
    @TableField(value = COL_TASK_ID)
    private Long taskId;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 逻辑删除 0 未删除,1已删除
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 角色编号
     */
    public static final String COL_ROLE_ID = "role_id";

    /**
     * 任务编号
     */
    public static final String COL_TASK_ID = "task_id";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 更新时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 逻辑删除 0 未删除,1已删除
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
